<?php
namespace User\Controller;
use Common\Controller\AdminbaseController;
class SusersController extends AdminbaseController {
	protected $susers_model;
	function _initialize() {
		parent::_initialize();
		$this->susers_model = D("Susers");
	}
	function index(){
		$this->_lists();
		$this->display();
	}
	function _lists(){
		/*text*/
		$count=$this->susers_model->where()->count();
		$page = $this->page($count, 50);
		$susers=$this->susers_model->where()
		->limit($page->firstRow . ',' . $page->listRows)
		->order("id DESC")->select();
    	$this->assign('page', $page->show('Admin'));
		$this->assign("susers", $susers);
	}
}